﻿using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;

namespace LuckyFish.Ledger.Data;

public class LedgerModel
{
    public LedgerModel(string name, decimal amount, string category,string createTime)
    {
        Name = name;
        Amount = amount;
        Category = category;
        CreateTime = createTime;
    }

    [Key]
    public int Key { get; set; }
    public string Name { get; set; }
    public decimal Amount { get; set; }
    public string Category { get; set; }
    public string CreateTime { get; set; }
}